package com.huluobo.kotlindemoim1911a2.contract.register

import com.huluobo.kotlindemoim1911a2.base.BasePresenter

/**
 * Created by lc on 2022/10/19.
 */
class RegisterContract {
    interface Presenter : BasePresenter {
        fun register(userName: String, password: String, confirmPassword: String)
//请求验证码的方法,同样也需要进行网络请求,所以在P层需要具体的方法实现
//        fun registerCode(phone: Int)
    }

    interface View {
        fun onUserNameError()
        fun onPasswordError()
        fun onConfirmPasswordError()
        fun onStartRegister()
        fun onRegisterSuccess()
        fun onRegisterFailed(message: String)
        fun onUserExist()//相当于新增需求,用户已经注册的回调


//        fun onPhoneError()
//        fun onStartRegisterCode()
//        fun onCodeSuccess()
//        fun onCodeFailed()
    }
}